/*
* OLED.H
 * 功能：OLED屏 驱动
 */

#ifndef __OLED_H
#define __OLED_H

#include "stm32f1xx.h"

extern uint8_t CSMZ[];

void OLED_Init(void);
void OLED_Clear(void);
void OLED_ShowChar(uint8_t Line, uint8_t Column, char Char);
void OLED_ShowString(uint8_t Line, uint8_t Column, char *String);
void OLED_ShowNum(uint8_t Line, uint8_t Column, uint32_t Number, uint8_t Length);
void OLED_ShowSignedNum(uint8_t Line, uint8_t Column, int32_t Number, uint8_t Length);
void OLED_ShowHexNum(uint8_t Line, uint8_t Column, uint32_t Number, uint8_t Length);
void OLED_ShowBinNum(uint8_t Line, uint8_t Column, uint32_t Number, uint8_t Length);

//
void OLED_ShowChinese(uint8_t Line, uint8_t Column, uint8_t Char);
void OLED_Print(uint8_t x, uint8_t y, char *s);
void OLED_ShowBMP(unsigned char x0, unsigned char y0,unsigned char x1, unsigned char y1,unsigned char PI[]);

#endif
